<#assign module="partner"/>
<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/form.css">
<link rel="stylesheet" href="${ctx}/assets/css/datetimepicker.css">
<link rel="stylesheet" href="${ctx}/assets/css/jquery.Jcrop.css">
<link rel="stylesheet" href="${ctx}/assets/css/scojs.css">
<link rel="stylesheet" href="${ctx}/assets/css/sco.message.css">
<style>
	/* autocomplete */
	div.ac {border: 1px solid #ccc;position: absolute;display: none;overflow: auto;background-color: #ffffff;z-index:998;}
	div.ac > ul {margin-top:10px;padding:0;}
	div.ac > ul > li {height:33px;line-height:33px;cursor:pointer;}
	div.ac > ul > li:hover{background:#eee;}
	div.ac > ul > li > div span {padding-left:15px;}
	div.ac > ul > li > div span em {color:red;font-style: normal;}
</style>
</@override>
<@override name="body">
  <div class="row">
	<form id="submit_form" action="#" class="form-horizontal" method="post">
	  		<input type="hidden" id="categoryAlias" value="${categoryAlias?if_exists}"/>
	  		<input type="hidden" id="id" value="${partner.id}"/>
	  		<input type="hidden" id="lat" value="${partner.lat}"/>
	  		<input type="hidden" id="lng" value="${partner.lng}"/>
		    <div class="col-md-6">
			    <div class="col-md-12">
			    <div class="panel panel-default">
					<div class="panel-heading">
						商家基本信息
				    </div>
			    	<div class="panel-body">
		                <div class="form-group">
		                    <div class="col-sm-12">
		                    	<div class="input-group">
		                    		<label class="control-label">商家名称:&emsp;&emsp;</label>
		                    		<label class="control-label">${partner.name?if_exists}</label>
			                	</div>
			                </div>
		                </div>
	                	<div class="form-group">
		                    <div class="col-sm-12">
		                    	<div class="input-group">
		                    		<label class="control-label">商家电话:&emsp;&emsp;</label>
				            		<label class="control-label">${partner.phone?if_exists}</label>
			                	</div>
			                </div>
		                </div>
		                <#if partner.intentName??>
		                <div class="form-group">
		                    <div class="col-sm-12">
		                    	<div class="input-group">
			                    	<label class="control-label">所属分类:&emsp;&emsp;</label>
			                    	<label class="control-label">${partner.intentName?if_exists}</label>
			                	</div>
			                </div>
		                </div>
		                </#if>
		                 <div class="form-group">
		                    <label><em>&nbsp;&nbsp;</em>详情介绍:</label>
		                    <div class="col-sm-12">
				            	<textarea class="form-control" cols="20" id="intro" readonly="readonly" name="intro" rows="15">${partner.intro?if_exists}</textarea>
			                </div>
		                </div>
		                
	                    <div class="col-sm-12">
			                <div class="form-group">
						        <div class="col-md-12" style="width:100%;" >
			                		<label>商铺地址:</label>
			                		<label class="control-label">${partner.province?if_exists}&emsp;</label>
						       		<label class="control-label">${partner.city?if_exists}&emsp;</label>
						       		<label class="control-label">${partner.county?if_exists}&emsp;</label>
						       		<label class="control-label">${partner.address?if_exists}&emsp;</label>
			                	</div>
						    </div>
					    </div>
				    </div>
			    </div>
				</div>
			</div>
			<div class="col-md-6">
				<div class="panel panel-default">
					<div class="panel-heading">
						商家图片
				    </div>
			    	<div class="panel-body" >
		    		<div class="col-md-12">
		    			<div class="col-md-12">
			    			<#if img1??>
			    		    <div class="col-md-6">
									&nbsp;<img id="shareImage_img"  src="${ctx}/${img1?if_exists}" width="100%" height="100%" />
									<input style="display:none;" type="file" name="imgFile" id="shareImage_file" accept=".bmp,.gif,.jpeg,.jpg,.png">
									<input type="hidden" id="img1" name="img1" value="">
							</div>
							</#if>
		    				<#if img2??>
			    		    <div class="col-md-6">
								&nbsp;<img id="shareImage_img2"  src="${ctx}/${img2?if_exists}" width="100%" height="100%" />
								<input style="display:none;" type="file" name="imgFile" id="shareImage_file2" accept=".bmp,.gif,.jpeg,.jpg,.png">
								<input type="hidden" id="img2" name="img2" value="">
							</div>
							</#if>
						</div>
						<div class="col-md-12">
			    			<#if img3??>
			    		    <div class="col-md-6">
								&nbsp;<img id="shareImage_img3"  src="${ctx}/${img3?if_exists}" width="100%" height="100%" />
								<input style="display:none;" type="file" name="imgFile" id="shareImage_file3" accept=".bmp,.gif,.jpeg,.jpg,.png">
								<input type="hidden" id="img3" name="img3" value="">
							</div>
							</#if>
			    			<#if img4??>
			    		    <div class="col-md-6">
								&nbsp;<img id="shareImage_img4"  src="${ctx}/${img4?if_exists}" width="100%" height="100%" />
								<input style="display:none;" type="file" name="imgFile" id="shareImage_file4" accept=".bmp,.gif,.jpeg,.jpg,.png">
								<input type="hidden" id="img4" name="img4" value="">
							</div>
							</#if>
						</div>
			    	    </div>
			    	</div>
		    	</div>
		    </div>
		</form>	
  </div>
  <div class="row">
	  <div class="col-md-12" style="margin-top:20px;">
			<div class="col-md-5">
			</div>
			<div class="col-md-7">
				<div class="form-group">
	    			<input type="button" class="btn btn-default" onclick="window.location.href = '${ctx}/partner/list/${categoryAlias?if_exists}';" value="返回">
				</div>
			</div>
		</div>
  </div>
</@override>
<@override name="footer">
<script type="text/javascript" language="javascript">
		window.daijia = {ctx : '${ctx}',address : '${address?if_exists}'};
</script>
<script src="${ctx}/assets/js/region_select.js"></script>
<script src="//api.map.baidu.com/api?v=2.0&ak=AuNk3YS21DSmHEEvIFDf9dbD" type="text/javascript"></script> 
<script src="${ctx}/assets/js/jquery.autocomplete.min.js"></script>
<script src="${ctx}/assets/js/ajaxfileupload.js"></script>
</@override>
<@extends name="../layout.ftl"/>